/***
 * @Author:
 * @Date: 2023-04-17 10:51:38
 * @LastEditors: xxx
 * @LastEditTime: 2023-04-17 10:53:25
 * @Description:
 * @email:
 * @Copyright (c) 2023 by xxx, All Rights Reserved.
 */

#ifndef __FLOW_DEF_
#define __FLOW_DEF_

// 机制状态
#define FLOW_WAIT (0)
#define FLOW_LOCK (1)
#define FLOW_FINISH (2)
#define FLOW_END (3)

//
struct flow
{
    unsigned long line;
    unsigned long time;
};

//
struct flow_timer
{
    unsigned long start;
    unsigned long interval;
};

//
struct flow_sem
{
    unsigned long count;
    unsigned long time;
};

//
extern unsigned long flow_tick;

#endif /* __FLOW_DEF_ */
